

/**
 * 游戏结束状态
 * FailGround:掉到地上
 * CollisionPipe: 撞到柱子
 */
export enum GGType {
    FailGround,
    CollisionPipe
}

export enum GameState {
    Ready,
    Play,
    Over,
}

export class GameConst {
    // 移动速度
    static MOVE_SPEED: number = 500

    // 管道宽度
    static readonly PIPE_WIDTH: number = 52

    // 小鸟宽高
    static readonly BIRD_WIDTH: number = 68
    static readonly BIRD_HEIGHT: number = 48

    // 当前得分
    static CURRENT_SCORE: number = 0

    // 个人最高记录
    static SELF_RECORD: number = 0
}

export enum RigidGroup {
    BIRD = 2,
    PIPE = 4,
    GROUND = 8
}

/**
 * 音频控制
 */
export class AudioConfig {
    // 点击
    static readonly SWOOSH: string = 'audios/swoosh'

    // 撞击
    static readonly HIT: string = 'audios/hit'

    // 死亡
    static readonly DIE: string = 'audios/die'

    // 得分
    static readonly POINT: string = 'audios/point'
}